package com.whfc.common.obd;

import java.util.HashMap;
import java.util.Map;

/**
 * Obd常量
 *
 * @Author hw
 * @Date 2020/11/16 14:21
 * @Version 1.0
 */
public class ObdConst {

    public static Map<String, String[]> map = new HashMap<>(128);

    /**
     * 总油耗
     */
    public static final String TOTAL_FUEL_CONSUMPTION = "total_fuel_consumption";

    /**
     * 发动机转速
     */
    public static final String ENGINE_SPEED = "engine_speed";

    /**
     * 1轮张力
     */
    public static final String TENSION1 = "tension1";

    /**
     * 2轮张力
     */
    public static final String TENSION2 = "tension2";

    /**
     * 轮速
     */
    public static final String SPEED1 = "speed1";

    /**
     * 轮速
     */
    public static final String SPEED2 = "speed2";

    /**
     * 轮速
     */
    public static final String SPEED3 = "speed3";

    /**
     * 轮速
     */
    public static final String SPEED4 = "speed4";

    /**
     * 总放线里程1
     */
    public static final String TOTAL_LENGTH1 = "total_length1";

    /**
     * 总放线里程2
     */
    public static final String TOTAL_LENGTH2 = "total_length2";

    /**
     * 总工时
     */
    public static final String TOTAL_WORK_HOUR = "total_engine_hours";

    /**
     * 牵引力
     */
    public static final String FORCE = "force1";

    static {
        //0x0101
        map.put("0x0101_1", new String[]{"制动", "启动"});
        map.put("0x0101_2", new String[]{"张力工况", "牵引工况"});
        map.put("0x0101_3", new String[]{"手动模式", "自动模式"});
        map.put("0x0101_4", new String[]{"本机控制", "远程控制"});
        map.put("0x0101_5", new String[]{"独立工作", "并轮工作"});
        map.put("0x0101_6", new String[]{"中位", "送线"});
        map.put("0x0101_7", new String[]{"松开", "夹紧"});
        map.put("0x0101_8", new String[]{"计数", "清零"});
        map.put("0x0101_9", new String[]{"正常", "故障"});
        map.put("0x0101_10", new String[]{"停止", "摆线"});
        map.put("0x0101_11", new String[]{"关闭", "开启"});
        map.put("0x0101_12", new String[]{"关闭", "报警"});
        //0x0CF00300
        map.put("0x0CF00300_1", new String[]{"关闭", "启动", "错误", "不可用"});
        map.put("0x0CF00300_2", new String[]{"关闭", "启动", "错误", "不可用"});
        map.put("0x0CF00300_3", new String[]{"启动", "关闭", "异常", "不可用"});
        //0x18FEDF00
        map.put("0x18FEDF00_1", new String[]{"不超过排气露点", "超过排气露点", "错误", "不可用"});
        //0x18FEF100
        map.put("0x18FEF100_1", new String[]{"关闭", "开启", "错误", "不可用"});
        map.put("0x18FEF100_2", new String[]{"关闭", "开启", "未知", "未知"});
        map.put("0x18FEF100_3", new String[]{"禁用", "控制", "自适应巡航控制", "Dec", "重启", "设置", "覆盖自适应巡航控制", "不可用"});
        map.put("0x18FEF100_4", new String[]{
                "关闭", "开启", null, "待机", null, "设置", "减速", "恢复",
                "自适应巡航控制", null, "程序上设定的速度0", "程序上设定的速度1", "程序上设定的速度2", "程序上设定的速度3", null, null,
                null, null, null, null, null, null, null, null,
                null, null, null, null, null, null, null, "不可用"});
        //0x18FECA00
        map.put("0x18FECA00_1", new String[]{"慢闪", "快速闪光", "class c DTC", "不可用"});
        map.put("0x18FECA00_2", new String[]{"关闭", "打开"});
        //0x18FEE400
        map.put("0x18FEE400_1", new String[]{"关闭", "开启"});
        //0x18FEBD00
        map.put("0x18FEBD00_1", new String[]{"关闭", "发动机系统", "发动机空气温度过高", "发动机油温过高", "发动机冷却液温度过高", null, null, null, "手动控制", "转动减速器", "A/C系统", "定时器", "发动机制动", "其他", "不可用"});
        //0x18FF0800
        map.put("0x18FF0800_1", new String[]{"锁定", "未锁定"});
        map.put("0x18FF0800_2", new String[]{"无效", "有效"});
        map.put("0x18FF0800_3", new String[]{"表示中立", "表示处于起步阶段", "表示升档", "表示降档"});
        map.put("0x18FF0800_4", new String[]{"正常", "预警", "警告"});
        map.put("0x18FF0800_5", new String[]{"正常", "工作范围以内", "不可用"});
        map.put("0x18FF0800_6", new String[]{"未激活", "激活"});
        map.put("0x18FF0800_7", new String[]{"车辆未锁定", "车辆锁定"});
        map.put("0x18FF0800_8", new String[]{"秘钥不匹配", "秘钥匹配"});
        map.put("0x18FF0800_9", new String[]{"ID不匹配", "ID匹配"});
        map.put("0x18FF0800_10", new String[]{"阶段(加热器关闭，灯关闭)", "预热阶段(加热器打开，灯打开)", "准备加热(加热器打开，灯闪烁)，建议起动", "暂不加热(暖气关，灯关)", "有额外加热阶段的曲柄(加热器开，灯关）", "曲柄相位(加热器关，灯关)",
                "加热后阶段(加热器开，灯关)", "加热阶段结束(加热器关闭，灯关)", "运行阶段(加热器关闭，放大器关闭)"});
        map.put("0x18FF0800_11", new String[]{"打开", "闪烁", "不可用"});
        map.put("0x18FF0800_12", new String[]{"发动机不正常T15开启时关机", "发动机关机，T15启动"});
        map.put("0x18FF0800_13", new String[]{"没有紧急启动", "紧急启动"});
        map.put("0x18FF0800_14", new String[]{"GPS锁定激活", "GPS锁定未激活", "心跳就是成功", "心跳不正常"});
        //0x18FEFF00
        map.put("0x18FEFF00_1", new String[]{"燃料中没有水", "燃料中存在的水", "错误值", "不可用"});
        //0x18F0010B
        map.put("0x18F0010B_1", new String[]{"刹车不凹陷，无缺陷", "刹车凹陷，无缺陷", "刹车似乎不可以", "刹车开关状态不可用"});
        map.put("0x18F0010B_2", new String[]{"ASR制动控制被动但已安装", "ASR制动控制被动但已安装", "ASR刹车控制不正常", "不可用"});
        map.put("0x18F0010B_3", new String[]{"ASR引擎控制被动但已安装", "ASR发动机控制启动", "ASR发动机控制不正常", "不可用"});
        map.put("0x18F0010B_4", new String[]{"关闭无关请求", "打开，关闭请求激活", "错误", "不可用"});
        map.put("0x18F0010B_5", new String[]{"关闭", "打开", "保留", "采取任何行动"});
        //0x0CF00203
        map.put("0x0CF00203_1", new String[]{"换挡没有启动", "换挡启动"});
        map.put("0x0CF00203_2", new String[]{"液力变矩器锁定解除", "变矩器锁定已启动"});
        map.put("0x0CF00203_3", new String[]{"动力传动系统是空闲的", "动力传动系统"});
        map.put("0x0CF00203_4", new String[]{"不允许瞬时超速请求", "允许瞬时超速请求"});
        //0x18FE4A03
        map.put("0x18FE4A03_1", new String[]{"曲柄禁用", "启动曲柄", "错误", "不可用"});
        //0x18FEF121
        map.put("0x18FEF121_1", new String[]{"开关关闭", "开关开启", "错误", "开关状态不可用"});
        map.put("0x18FEF121_2", new String[]{"离合器关闭", "离合器开启", "错误", "不可用"});
        map.put("0x18FEF121_3", new String[]{"刹车不凹陷，无缺陷", "刹车凹陷，无缺陷", "刹车似乎不可以", "刹车开关状态不可用"});
        map.put("0x18FEF121_4", new String[]{"禁用/关闭", "有效", null, "备用/空挡", null, null, "加入", "减速", "恢复", "加速", "预编程设定速度1", "预编程设定速度2", "预编程设定速度3", null, "预编程设定速度4", null, null, null, null, null, null,
                null, null, null, null, null, null, null, null, null, null, "没有"});
        //0x0C00000B
        map.put("0x0C00000B_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C00000B_2", new String[]{"瞬态优化，适用于传动系统脱离和非锁定条件", "稳定性优化的传动系统脱离和非锁定条件", "为传动系统的啮合和/或锁定条件优化的稳定性1", "为传动系统的啮合和/或锁定状态优化的稳定性2"});
        map.put("0x0C00000B_3", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0C000F0B
        map.put("0x0C000F0B_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C000F0B_2", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0C000024
        map.put("0x0C000024_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C000024_2", new String[]{"瞬态优化，适用于传动系统脱离和非锁定条件", "稳定性优化的传动系统脱离和非锁定条件", "为传动系统的啮合和/或锁定条件优化的稳定性1", "为传动系统的啮合和/或锁定状态优化的稳定性2"});
        map.put("0x0C000024_3", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0C000021
        map.put("0x0C000021_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C000021_2", new String[]{"瞬态优化，适用于传动系统脱离和非锁定条件", "稳定性优化的传动系统脱离和非锁定条件", "为传动系统的啮合和/或锁定条件优化的稳定性1", "为传动系统的啮合和/或锁定状态优化的稳定性2"});
        map.put("0x0C000021_3", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0C000003
        map.put("0x0C000003_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C000003_2", new String[]{"瞬态优化，适用于传动系统脱离和非锁定条件", "稳定性优化的传动系统脱离和非锁定条件", "为传动系统的啮合和/或锁定条件优化的稳定性1", "为传动系统的啮合和/或锁定状态优化的稳定性2"});
        map.put("0x0C000003_3", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0C000F21
        map.put("0x0C000F21_1", new String[]{"最高优先级", "高优先级", "中等优先级", "低优先级"});
        map.put("0x0C000F21_2", new String[]{"覆盖禁用", "速度控制", "转矩控制", "速度/转矩限制控制"});
        //0x0CFF0431
        map.put("0x0CFF0431_1", new String[]{"关闭", "激活"});
        map.put("0x0CFF0431_2", new String[]{"开关关闭", "开关激活", "不可用"});

    }


}
